package net.yla.smartbus.module.ba.group.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @description:
 * @author: Yee
 * @date: 2021/6/18 17:05
 */
public class DateUtil {

    /**
     * 日期格式转换成字符串
     *
     * @param date
     * @return
     */
    public static String d_s(Date date) {

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        if (date == null) {
            return null;
        }
        String format = simpleDateFormat.format(date);
        return format;

    }

}
